package cn.tedu.product.api;

import com.jt.common.pojo.Product;
import com.jt.common.vo.EasyUIResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("product-service")
public interface ProductApi {
    @RequestMapping(value="/product/manage/item/{productId}",method = RequestMethod.GET)
    public Product queryOneProduct(@PathVariable(name = "productId") String productId);

    @RequestMapping(value="/product/manage/pageManage",method = RequestMethod.GET)
    public EasyUIResult queryByPage(@RequestParam("page") Integer page, @RequestParam("rows")Integer rows);
}
